﻿#include "netprocess.h"

NetProcess::NetProcess(QObject *parent)
    : QObject{parent}
{
    manager = new QNetworkAccessManager(this);
}

void NetProcess::set_Url_Value(QString inputUrl)
{
    setInputUrl(inputUrl);
}

void NetProcess::readNetWork_Get_MaterialNames()
{
    // QUrl url("https://open.thinkerx.com/api/get-cutting/4ebdb3d6ac1411ed8d2d00163e18d113/getCuttingBoms?id=594");
    QUrl url(InputUrl());

    QNetworkRequest request(url);

    QNetworkReply* reply = manager->get(request);

    QObject::connect(reply,&QNetworkReply::finished,[=](){
        if(reply->error() == QNetworkReply::NoError)
        {
            QVariant statusCode = reply->attribute(QNetworkRequest::HttpStatusCodeAttribute);

            QByteArray responseData = reply->readAll();

            // qDebug()<<"状态码:"<<statusCode.toInt();

            // qDebug()<<"响应数据:"<<responseData;

            QJsonParseError err;

            /*QJsonDocument */
            document = QJsonDocument::fromJson(responseData,&err);

            if(err.error != QJsonParseError::NoError)
            {
                qDebug()<<"Json 格式错误";
                return ;
            }
            else
            {
                /*QJsonObject */
                rootObject = document.object();

                // QJsonValue statusValue = rootObject.value("status");
                // qDebug()<<"状态:"<<statusValue.toInt();
                // QJsonValue messageValue = rootObject.value("message");
                // qDebug()<<"信息:"<<messageValue.toString();
                /*QJsonValue */
                dataValue = rootObject.value("data");
                // qDebug()<<"数据:"<<dataValue.toObject();

                // 获取到子节点 -- 数据节点
                // QJsonObject
                dataObject = dataValue.toObject();

                // QJsonValue versionValue = dataObject.value("Version");
                // qDebug()<<"版本信息:"<<versionValue.toString();

                // QJsonValue generatorValue = dataObject.value("Generator");
                // qDebug()<<"创建日期:"<<generatorValue.toString();

                // 获取到数组节点 -- 型材信息
                // QJsonValue barValue = dataObject.value("Bar");
                // qDebug()<<"型材信息:"<<barValue.toArray();
                // QJsonArray barArray = barValue.toArray();

                /*QJsonValue */
                barsValue = dataObject.value("Bars");
                // 判断字节点类型
                if(barsValue.type() == QJsonValue::Array)
                {
                    // 创建子节点
                    /*QJsonArray */
                    barsArray = barsValue.toArray();

                    for(int i = 0 ; i < barsArray.count() ; ++i)
                    {
                        /*QJsonObject */
                        array = barsArray.at(i).toObject();
                        // QJsonValue dxf_NameValue = array.value("DXF_Name");
                        // qDebug()<<"型材名称:"<<dxf_NameValue.toString();
                        // QJsonValue barNumber = array.value("BarNumber");
                        // qDebug()<<"方案编号:"<<barNumber.toInt();
                        // QJsonValue max_Y = array.value("MaxY");
                        // qDebug()<<"型材切割高度:"<<max_Y.toInt();
                        // QJsonValue max_Z = array.value("MaxZ");
                        // qDebug()<<"型材切割深度:"<<max_Z.toInt();
                        // QJsonValue length = array.value("Length");
                        // qDebug()<<"型材支长:"<<length.toInt();
                        // MaterialLong.insert(i,QString::number(length.toInt()));
                        QJsonValue barName = array.value("BarName");
                        qDebug()<<"型材名称:"<<barName.toString();
                        m_MaterialNames << barName.toString();
                        emit MaterialNamesChanged();
                        // QJsonValue barColor = array.value("BarColor");
                        // qDebug()<<"型材颜色:"<<barColor.toString();
                        // QJsonValue barLeftLength = array.value("BarLeftLength");
                        // qDebug()<<"型材余料长度:"<<barLeftLength.toInt();
                        // QJsonValue barType = array.value("BarType");
                        // if(barType.toInt() == 0)
                        // {
                        //     qDebug()<<"型材类型:"<<"框梃";
                        // }
                        // else if(barType.toInt() == 1)
                        // {
                        //     qDebug()<<"型材类型:"<<"扇";
                        // }
                        // else if(barType.toInt() == 2)
                        // {
                        //     qDebug()<<"型材类型:"<<"纱窗";
                        // }
                        // else if(barType.toInt() == 3)
                        // {
                        //     qDebug()<<"型材类型:"<<"连接件";
                        // }
                        // else if(barType.toInt() == 4)
                        // {
                        //     qDebug()<<"型材类型:"<<"转角";
                        // }
                        // else if(barType.toInt() == 5)
                        // {
                        //     qDebug()<<"型材类型:"<<"方管";
                        // }
                        // else if(barType.toInt() == 6)
                        // {
                        //     qDebug()<<"型材类型:"<<"压线";
                        // }
                        // else if(barType.toInt() == 7)
                        // {
                        //     qDebug()<<"型材类型:"<<"辅料";
                        // }

                        // QJsonArray Piece = array.value("Piece").toArray();
                        // for(int i = 0 ; i < Piece.count() ; i++)
                        // {
                        //     qDebug()<<"------------------------" <<"第 "<<(i+1)<<" 页"<<"---------------";
                        //     qDebug()<<"  片段编号:"<<Piece.at(i).toObject().value("PieceNumber").toInt();
                        //     orderNumber.insert(i,QString::number(Piece.at(i).toObject().value("PieceNumber").toInt()));
                        //     // qDebug()<<"  客户名称:"<<Piece.at(i).toObject().value("Customer").toString();
                        //     // qDebug()<<"  产品名称:"<<Piece.at(i).toObject().value("product_name").toString();
                        //     QJsonObject cut = Piece.at(i).toObject().value("Cut").toObject();
                        //     qDebug()<<"  切割长度:"<<cut.value("Length").toInt();
                        //     qDebug()<<"  左角度:"<<cut.value("sxB").toInt();
                        //     qDebug()<<"  右角度:"<<cut.value("dxB").toInt();
                        //     // qDebug()<<"  sxC:"<<cut.value("sxC").toInt();
                        //     // qDebug()<<"  dxC:"<<cut.value("dxC").toInt();
                        //     // qDebug()<<"  Lhn:"<<cut.value("Lhn").toInt();
                        //     // qDebug()<<"  Rhn:"<<cut.value("Rhn").toInt();
                        //     // QJsonArray work = Piece.at(i).toObject().value("Work").toArray();
                        //     // for(int j = 0; j < work.count() ; j++ )
                        //     // {
                        //     //     qDebug()<<"------------------------"<<"第 "<<(j+1)<<" 加工页"<<"---------------";
                        //     //     qDebug()<<"     工作 - 名称:"<<work.at(j).toObject().value("Name").toString();
                        //     //     qDebug()<<"     工作 - ProfiLav:"<<work.at(j).toObject().value("ProfiLav").toString();
                        //     //     qDebug()<<"     工作 - X轴加工位置:"<<work.at(j).toObject().value("PositionX").toInt();
                        //     //     qDebug()<<"     工作 - Y轴加工位置:"<<work.at(j).toObject().value("PositionY").toString();
                        //     //     qDebug()<<"     工作 - Z轴加工位置:"<<work.at(j).toObject().value("PositionZ").toString();
                        //     //     qDebug()<<"     工作 - 孔型:"<<work.at(j).toObject().value("holing_type").toString();
                        //     // }

                        //     qDebug()<<"--------------------------------------------------------";

                        // }
                    }

                }

                // qDebug()<<"*****************************************************";

            }
        }
        else
        {
            qDebug()<<"GET 请求失败"<<reply->errorString();
        }

        reply->deleteLater();
    });


}

void NetProcess::readNetWork_Get_MaterialNames_CF()
{

    // qDebug()<<"测试接口: "<<"http://cfwincad.cfsuper.com/api/project/opt_1D_InfoDetail?TenantId=20129158485061&ID=1022";

    QUrl url(InputUrl());

    QNetworkRequest request(url);

    QNetworkReply* reply = manager->get(request);

    QObject::connect(reply,&QNetworkReply::finished,[=](){
        if(reply->error() == QNetworkReply::NoError)
        {
            QVariant statusCode = reply->attribute(QNetworkRequest::HttpStatusCodeAttribute);

            QByteArray responseData = reply->readAll();

            // qDebug()<<"状态码:"<<statusCode.toInt();

            // qDebug()<<"响应数据:"<<responseData;

            QJsonParseError err;

            /*QJsonDocument */
            document = QJsonDocument::fromJson(responseData,&err);

            if(err.error != QJsonParseError::NoError)
            {
                qDebug()<<"Json 格式错误";
                return ;
            }
            else
            {
                /*QJsonObject */
                rootObject = document.object();

                // QJsonValue successValue = rootObject.value("success");
                // qDebug()<<"状态:"<<successValue.toBool();
                // QJsonValue codeValue = rootObject.value("code");
                // qDebug()<<"返回代码:"<<codeValue.toString();
                // QJsonValue messageValue = rootObject.value("message");
                // qDebug()<<"信息:"<<messageValue.toString();
                // QJsonValue versionValue = rootObject.value("version");
                // qDebug()<<"版本:"<<versionValue.toString();
                // QJsonValue unitValue = rootObject.value("unit");
                // qDebug()<<"料单-单位:"<<unitValue.toString();

                barsValue = rootObject.value("bar");
                if(barsValue.type() == QJsonValue::Array)
                {
                    barsArray = barsValue.toArray();

                    qDebug()<<"-----------------开始----------------------";

                    for(int i = 0 ; i < barsArray.count() ; ++i)
                    {
                        array = barsArray.at(i).toObject();
                        QJsonValue dxf_NameValue = array.value("dxF_Name");
                        qDebug()<<"型材代码 : "<<dxf_NameValue.toString();

                        m_MaterialNames << dxf_NameValue.toString();
                        emit MaterialNamesChanged();

                        // QJsonArray pieceArray = array.value("piece").toArray();

                        // for(int i = 0 ; i < pieceArray.count() ; ++i)
                        // {
                        //     QJsonObject cutArray = pieceArray.at(i).toObject();

                        //     qDebug()<<"第 "<<cutArray.value("pieceNumber").toInt()<<" 页";

                        //     QJsonObject cutObject = cutArray.value("cut").toObject();
                        //     qDebug()<<"长度 : "<<cutObject.value("length").toString();
                        //     qDebug()<<"左角度 : "<<cutObject.value("sxB").toString();
                        //     qDebug()<<"右角度 : "<<cutObject.value("dxB").toString();
                        // }

                        qDebug()<<"-----------------结  束----------------------";

                    }

                }
            }
        }
    });

}

void NetProcess::get_Process_Parameters_CF(int index)
{

    qDebug()<<"当前是第 " << index <<"项目";

    qDebug()<<"型材名称: "<<barsArray.at(index).toObject().value("dxF_Name").toString();

    QJsonArray Piece = barsArray.at(index).toObject().value("piece").toArray();

    // 清空列表
    claerList();

    for(int i = 0 ; i < Piece.count() ; i++)
    {

        switch (Piece.at(i).toObject().value("pieceNumber").toInt())
        {
        case 1:
            setLC_Value01(Piece.at(i).toObject().value("cut").toObject().value("length").toString());
            setLeftAngle01(Piece.at(i).toObject().value("cut").toObject().value("sxB").toString());
            setRightAngle01(Piece.at(i).toObject().value("cut").toObject().value("dxB").toString());
            setCount01("1");
            break;
        case 2:
            setLC_Value02(Piece.at(i).toObject().value("cut").toObject().value("length").toString());
            setLeftAngle02(Piece.at(i).toObject().value("cut").toObject().value("sxB").toString());
            setRightAngle02(Piece.at(i).toObject().value("cut").toObject().value("dxB").toString());
            setCount02("1");
            break;
        case 3:
            setLC_Value03(Piece.at(i).toObject().value("cut").toObject().value("length").toString());
            setLeftAngle03(Piece.at(i).toObject().value("cut").toObject().value("sxB").toString());
            setRightAngle03(Piece.at(i).toObject().value("cut").toObject().value("dxB").toString());
            setCount03("1");
            break;
        case 4:
            setLC_Value04(Piece.at(i).toObject().value("cut").toObject().value("length").toString());
            setLeftAngle04(Piece.at(i).toObject().value("cut").toObject().value("sxB").toString());
            setRightAngle04(Piece.at(i).toObject().value("cut").toObject().value("dxB").toString());
            setCount04("1");
            break;
        case 5:
            setLC_Value05(Piece.at(i).toObject().value("cut").toObject().value("length").toString());
            setLeftAngle05(Piece.at(i).toObject().value("cut").toObject().value("sxB").toString());
            setRightAngle05(Piece.at(i).toObject().value("cut").toObject().value("dxB").toString());
            setCount05("1");
            break;
        case 6:
            setLC_Value06(Piece.at(i).toObject().value("cut").toObject().value("length").toString());
            setLeftAngle06(Piece.at(i).toObject().value("cut").toObject().value("sxB").toString());
            setRightAngle06(Piece.at(i).toObject().value("cut").toObject().value("dxB").toString());
            setCount06("1");
            break;
        case 7:
            setLC_Value07(Piece.at(i).toObject().value("cut").toObject().value("length").toString());
            setLeftAngle07(Piece.at(i).toObject().value("cut").toObject().value("sxB").toString());
            setRightAngle07(Piece.at(i).toObject().value("cut").toObject().value("dxB").toString());
            setCount07("1");
            break;
        case 8:
            setLC_Value08(Piece.at(i).toObject().value("cut").toObject().value("length").toString());
            setLeftAngle08(Piece.at(i).toObject().value("cut").toObject().value("sxB").toString());
            setRightAngle08(Piece.at(i).toObject().value("cut").toObject().value("dxB").toString());
            setCount08("1");
            break;
        case 9:
            setLC_Value09(Piece.at(i).toObject().value("cut").toObject().value("length").toString());
            setLeftAngle09(Piece.at(i).toObject().value("cut").toObject().value("sxB").toString());
            setRightAngle09(Piece.at(i).toObject().value("cut").toObject().value("dxB").toString());
            setCount09("1");
            break;
        case 10:
            setLC_Value10(Piece.at(i).toObject().value("cut").toObject().value("length").toString());
            setLeftAngle10(Piece.at(i).toObject().value("cut").toObject().value("sxB").toString());
            setRightAngle10(Piece.at(i).toObject().value("cut").toObject().value("dxB").toString());
            setCount10("1");
            break;
        case 11:
            setLC_Value11(Piece.at(i).toObject().value("cut").toObject().value("length").toString());
            setLeftAngle11(Piece.at(i).toObject().value("cut").toObject().value("sxB").toString());
            setRightAngle11(Piece.at(i).toObject().value("cut").toObject().value("dxB").toString());
            setCount11("1");
            break;
        case 12:
            setLC_Value12(Piece.at(i).toObject().value("cut").toObject().value("length").toString());
            setLeftAngle12(Piece.at(i).toObject().value("cut").toObject().value("sxB").toString());
            setRightAngle12(Piece.at(i).toObject().value("cut").toObject().value("dxB").toString());
            setCount12("1");
            break;
        case 13:
            setLC_Value13(Piece.at(i).toObject().value("cut").toObject().value("length").toString());
            setLeftAngle13(Piece.at(i).toObject().value("cut").toObject().value("sxB").toString());
            setRightAngle13(Piece.at(i).toObject().value("cut").toObject().value("dxB").toString());
            setCount13("1");
            break;
        case 14:
            setLC_Value14(Piece.at(i).toObject().value("cut").toObject().value("length").toString());
            setLeftAngle14(Piece.at(i).toObject().value("cut").toObject().value("sxB").toString());
            setRightAngle14(Piece.at(i).toObject().value("cut").toObject().value("dxB").toString());
            setCount14("1");
            break;
        case 15:
            setLC_Value15(Piece.at(i).toObject().value("cut").toObject().value("length").toString());
            setLeftAngle15(Piece.at(i).toObject().value("cut").toObject().value("sxB").toString());
            setRightAngle15(Piece.at(i).toObject().value("cut").toObject().value("dxB").toString());
            setCount15("1");
            break;
        case 16:
            setLC_Value16(Piece.at(i).toObject().value("cut").toObject().value("length").toString());
            setLeftAngle16(Piece.at(i).toObject().value("cut").toObject().value("sxB").toString());
            setRightAngle16(Piece.at(i).toObject().value("cut").toObject().value("dxB").toString());
            setCount16("1");
            break;
        case 17:
            setLC_Value17(Piece.at(i).toObject().value("cut").toObject().value("length").toString());
            setLeftAngle17(Piece.at(i).toObject().value("cut").toObject().value("sxB").toString());
            setRightAngle17(Piece.at(i).toObject().value("cut").toObject().value("dxB").toString());
            setCount17("1");
            break;
        case 18:
            setLC_Value18(Piece.at(i).toObject().value("cut").toObject().value("length").toString());
            setLeftAngle18(Piece.at(i).toObject().value("cut").toObject().value("sxB").toString());
            setRightAngle18(Piece.at(i).toObject().value("cut").toObject().value("dxB").toString());
            setCount18("1");
            break;
        case 19:
            setLC_Value19(Piece.at(i).toObject().value("cut").toObject().value("length").toString());
            setLeftAngle19(Piece.at(i).toObject().value("cut").toObject().value("sxB").toString());
            setRightAngle19(Piece.at(i).toObject().value("cut").toObject().value("dxB").toString());
            setCount19("1");
            break;
        case 20:
            setLC_Value20(Piece.at(i).toObject().value("cut").toObject().value("length").toString());
            setLeftAngle20(Piece.at(i).toObject().value("cut").toObject().value("sxB").toString());
            setRightAngle20(Piece.at(i).toObject().value("cut").toObject().value("dxB").toString());
            setCount20("1");
            break;
        default:
            break;
        }
        // qDebug()<<"序号: "<<Piece.at(i).toObject().value("pieceNumber").toInt();
        // qDebug()<<"长度 :"<<Piece.at(i).toObject().value("cut").toObject().value("length").toString();
        // qDebug()<<"左角度 :"<<Piece.at(i).toObject().value("cut").toObject().value("sxB").toString();
        // qDebug()<<"右角度 :"<<Piece.at(i).toObject().value("cut").toObject().value("dxB").toString();
    }
}

void NetProcess::get_Process_Parameters(int index)
{
    qDebug()<<"型材名称: "<<barsArray.at(index).toObject().value("BarName").toString();

    QJsonArray Piece = barsArray.at(index).toObject().value("Piece").toArray();

    // 清空列表
    claerList();

    for(int i = 0 ; i < Piece.count() ; i++)
    {

        switch (Piece.at(i).toObject().value("PieceNumber").toInt()) {
        case 1:
            setLC_Value01(QString::number(Piece.at(i).toObject().value("Cut").toObject().value("Length").toInt()));
            setLeftAngle01(QString::number(Piece.at(i).toObject().value("Cut").toObject().value("sxB").toInt()));
            setRightAngle01(QString::number(Piece.at(i).toObject().value("Cut").toObject().value("dxB").toInt()));
            setCount01("1");
            break;
        case 2:
            setLC_Value02(QString::number(Piece.at(i).toObject().value("Cut").toObject().value("Length").toInt()));
            setLeftAngle02(QString::number(Piece.at(i).toObject().value("Cut").toObject().value("sxB").toInt()));
            setRightAngle02(QString::number(Piece.at(i).toObject().value("Cut").toObject().value("dxB").toInt()));
            setCount02("1");
            break;
        case 3:
            setLC_Value03(QString::number(Piece.at(i).toObject().value("Cut").toObject().value("Length").toInt()));
            setLeftAngle03(QString::number(Piece.at(i).toObject().value("Cut").toObject().value("sxB").toInt()));
            setRightAngle03(QString::number(Piece.at(i).toObject().value("Cut").toObject().value("dxB").toInt()));
            setCount03("1");
            break;
        case 4:
            setLC_Value04(QString::number(Piece.at(i).toObject().value("Cut").toObject().value("Length").toInt()));
            setLeftAngle04(QString::number(Piece.at(i).toObject().value("Cut").toObject().value("sxB").toInt()));
            setRightAngle04(QString::number(Piece.at(i).toObject().value("Cut").toObject().value("dxB").toInt()));
            setCount04("1");
            break;
        case 5:
            setLC_Value05(QString::number(Piece.at(i).toObject().value("Cut").toObject().value("Length").toInt()));
            setLeftAngle05(QString::number(Piece.at(i).toObject().value("Cut").toObject().value("sxB").toInt()));
            setRightAngle05(QString::number(Piece.at(i).toObject().value("Cut").toObject().value("dxB").toInt()));
            setCount05("1");
            break;
        case 6:
            setLC_Value06(QString::number(Piece.at(i).toObject().value("Cut").toObject().value("Length").toInt()));
            setLeftAngle06(QString::number(Piece.at(i).toObject().value("Cut").toObject().value("sxB").toInt()));
            setRightAngle06(QString::number(Piece.at(i).toObject().value("Cut").toObject().value("dxB").toInt()));
            setCount06("1");
            break;
        case 7:
            setLC_Value07(QString::number(Piece.at(i).toObject().value("Cut").toObject().value("Length").toInt()));
            setLeftAngle07(QString::number(Piece.at(i).toObject().value("Cut").toObject().value("sxB").toInt()));
            setRightAngle07(QString::number(Piece.at(i).toObject().value("Cut").toObject().value("dxB").toInt()));
            setCount07("1");
            break;
        case 8:
            setLC_Value08(QString::number(Piece.at(i).toObject().value("Cut").toObject().value("Length").toInt()));
            setLeftAngle08(QString::number(Piece.at(i).toObject().value("Cut").toObject().value("sxB").toInt()));
            setRightAngle08(QString::number(Piece.at(i).toObject().value("Cut").toObject().value("dxB").toInt()));
            setCount08("1");
            break;
        case 9:
            setLC_Value09(QString::number(Piece.at(i).toObject().value("Cut").toObject().value("Length").toInt()));
            setLeftAngle09(QString::number(Piece.at(i).toObject().value("Cut").toObject().value("sxB").toInt()));
            setRightAngle09(QString::number(Piece.at(i).toObject().value("Cut").toObject().value("dxB").toInt()));
            setCount09("1");
            break;
        case 10:
            setLC_Value10(QString::number(Piece.at(i).toObject().value("Cut").toObject().value("Length").toInt()));
            setLeftAngle10(QString::number(Piece.at(i).toObject().value("Cut").toObject().value("sxB").toInt()));
            setRightAngle10(QString::number(Piece.at(i).toObject().value("Cut").toObject().value("dxB").toInt()));
            setCount10("1");
            break;
        case 11:
            setLC_Value11(QString::number(Piece.at(i).toObject().value("Cut").toObject().value("Length").toInt()));
            setLeftAngle11(QString::number(Piece.at(i).toObject().value("Cut").toObject().value("sxB").toInt()));
            setRightAngle11(QString::number(Piece.at(i).toObject().value("Cut").toObject().value("dxB").toInt()));
            setCount11("1");
            break;
        case 12:
            setLC_Value12(QString::number(Piece.at(i).toObject().value("Cut").toObject().value("Length").toInt()));
            setLeftAngle12(QString::number(Piece.at(i).toObject().value("Cut").toObject().value("sxB").toInt()));
            setRightAngle12(QString::number(Piece.at(i).toObject().value("Cut").toObject().value("dxB").toInt()));
            setCount12("1");
            break;
        case 13:
            setLC_Value13(QString::number(Piece.at(i).toObject().value("Cut").toObject().value("Length").toInt()));
            setLeftAngle13(QString::number(Piece.at(i).toObject().value("Cut").toObject().value("sxB").toInt()));
            setRightAngle13(QString::number(Piece.at(i).toObject().value("Cut").toObject().value("dxB").toInt()));
            setCount13("1");
            break;
        case 14:
            setLC_Value14(QString::number(Piece.at(i).toObject().value("Cut").toObject().value("Length").toInt()));
            setLeftAngle14(QString::number(Piece.at(i).toObject().value("Cut").toObject().value("sxB").toInt()));
            setRightAngle14(QString::number(Piece.at(i).toObject().value("Cut").toObject().value("dxB").toInt()));
            setCount14("1");
            break;
        case 15:
            setLC_Value15(QString::number(Piece.at(i).toObject().value("Cut").toObject().value("Length").toInt()));
            setLeftAngle15(QString::number(Piece.at(i).toObject().value("Cut").toObject().value("sxB").toInt()));
            setRightAngle15(QString::number(Piece.at(i).toObject().value("Cut").toObject().value("dxB").toInt()));
            setCount15("1");
            break;
        case 16:
            setLC_Value16(QString::number(Piece.at(i).toObject().value("Cut").toObject().value("Length").toInt()));
            setLeftAngle16(QString::number(Piece.at(i).toObject().value("Cut").toObject().value("sxB").toInt()));
            setRightAngle16(QString::number(Piece.at(i).toObject().value("Cut").toObject().value("dxB").toInt()));
            setCount16("1");
            break;
        case 17:
            setLC_Value17(QString::number(Piece.at(i).toObject().value("Cut").toObject().value("Length").toInt()));
            setLeftAngle17(QString::number(Piece.at(i).toObject().value("Cut").toObject().value("sxB").toInt()));
            setRightAngle17(QString::number(Piece.at(i).toObject().value("Cut").toObject().value("dxB").toInt()));
            setCount17("1");
            break;
        case 18:
            setLC_Value18(QString::number(Piece.at(i).toObject().value("Cut").toObject().value("Length").toInt()));
            setLeftAngle18(QString::number(Piece.at(i).toObject().value("Cut").toObject().value("sxB").toInt()));
            setRightAngle18(QString::number(Piece.at(i).toObject().value("Cut").toObject().value("dxB").toInt()));
            setCount18("1");
            break;
        case 19:
            setLC_Value19(QString::number(Piece.at(i).toObject().value("Cut").toObject().value("Length").toInt()));
            setLeftAngle19(QString::number(Piece.at(i).toObject().value("Cut").toObject().value("sxB").toInt()));
            setRightAngle19(QString::number(Piece.at(i).toObject().value("Cut").toObject().value("dxB").toInt()));
            setCount19("1");
            break;
        case 20:
            setLC_Value20(QString::number(Piece.at(i).toObject().value("Cut").toObject().value("Length").toInt()));
            setLeftAngle20(QString::number(Piece.at(i).toObject().value("Cut").toObject().value("sxB").toInt()));
            setRightAngle20(QString::number(Piece.at(i).toObject().value("Cut").toObject().value("dxB").toInt()));
            setCount20("1");
            break;
        default:
            break;
        }
        qDebug()<<"序号: "<<Piece.at(i).toObject().value("PieceNumber").toInt();
        qDebug()<<"切割长度: "<<Piece.at(i).toObject().value("Cut").toObject().value("Length").toInt();
        qDebug()<<"左角度: "<<Piece.at(i).toObject().value("Cut").toObject().value("sxB").toInt();
        qDebug()<<"右角度: "<<Piece.at(i).toObject().value("Cut").toObject().value("dxB").toInt();
    }
}

void NetProcess::claerList()
{
    setLC_Value01("");
    setLC_Value02("");
    setLC_Value03("");
    setLC_Value04("");
    setLC_Value05("");
    setLC_Value06("");
    setLC_Value07("");
    setLC_Value08("");
    setLC_Value09("");
    setLC_Value10("");
    setLC_Value11("");
    setLC_Value12("");
    setLC_Value13("");
    setLC_Value14("");
    setLC_Value15("");
    setLC_Value16("");
    setLC_Value17("");
    setLC_Value18("");
    setLC_Value19("");
    setLC_Value20("");

    setLeftAngle01("");
    setLeftAngle02("");
    setLeftAngle03("");
    setLeftAngle04("");
    setLeftAngle05("");
    setLeftAngle06("");
    setLeftAngle07("");
    setLeftAngle08("");
    setLeftAngle09("");
    setLeftAngle10("");
    setLeftAngle11("");
    setLeftAngle12("");
    setLeftAngle13("");
    setLeftAngle14("");
    setLeftAngle15("");
    setLeftAngle16("");
    setLeftAngle17("");
    setLeftAngle18("");
    setLeftAngle19("");
    setLeftAngle20("");

    setRightAngle01("");
    setRightAngle02("");
    setRightAngle03("");
    setRightAngle04("");
    setRightAngle05("");
    setRightAngle06("");
    setRightAngle07("");
    setRightAngle08("");
    setRightAngle09("");
    setRightAngle10("");
    setRightAngle11("");
    setRightAngle12("");
    setRightAngle13("");
    setRightAngle14("");
    setRightAngle15("");
    setRightAngle16("");
    setRightAngle17("");
    setRightAngle18("");
    setRightAngle19("");
    setRightAngle20("");

    setCount01("");
    setCount02("");
    setCount03("");
    setCount04("");
    setCount05("");
    setCount06("");
    setCount07("");
    setCount08("");
    setCount09("");
    setCount10("");
    setCount11("");
    setCount12("");
    setCount13("");
    setCount14("");
    setCount15("");
    setCount16("");
    setCount17("");
    setCount18("");
    setCount19("");
    setCount20("");

}

void NetProcess::testQDebug()
{
    qDebug()<<" "<<LC_Value01();
    qDebug()<<" "<<LeftAngle01();
    qDebug()<<" "<<RightAngle01();
    qDebug()<<" "<<Count01();
}

QString NetProcess::InputUrl() const
{
    return m_InputUrl;
}

void NetProcess::setInputUrl(const QString &newInputUrl)
{
    if (m_InputUrl == newInputUrl)
        return;
    m_InputUrl = newInputUrl;
    emit InputUrlChanged();
}

QStringList NetProcess::MaterialNames() const
{
    return m_MaterialNames;
}

void NetProcess::setMaterialNames(const QStringList &newMaterialNames)
{
    if (m_MaterialNames == newMaterialNames)
        return;
    m_MaterialNames = newMaterialNames;
    emit MaterialNamesChanged();
}

QString NetProcess::LC_Value01() const
{
    return m_LC_Value01;
}

void NetProcess::setLC_Value01(const QString &newLC_Value01)
{
    if (m_LC_Value01 == newLC_Value01)
        return;
    m_LC_Value01 = newLC_Value01;
    emit LC_Value01Changed();
}

QString NetProcess::LC_Value02() const
{
    return m_LC_Value02;
}

void NetProcess::setLC_Value02(const QString &newLC_Value02)
{
    if (m_LC_Value02 == newLC_Value02)
        return;
    m_LC_Value02 = newLC_Value02;
    emit LC_Value02Changed();
}

QString NetProcess::LC_Value03() const
{
    return m_LC_Value03;
}

void NetProcess::setLC_Value03(const QString &newLC_Value03)
{
    if (m_LC_Value03 == newLC_Value03)
        return;
    m_LC_Value03 = newLC_Value03;
    emit LC_Value03Changed();
}

QString NetProcess::LC_Value04() const
{
    return m_LC_Value04;
}

void NetProcess::setLC_Value04(const QString &newLC_Value04)
{
    if (m_LC_Value04 == newLC_Value04)
        return;
    m_LC_Value04 = newLC_Value04;
    emit LC_Value04Changed();
}

QString NetProcess::LC_Value05() const
{
    return m_LC_Value05;
}

void NetProcess::setLC_Value05(const QString &newLC_Value05)
{
    if (m_LC_Value05 == newLC_Value05)
        return;
    m_LC_Value05 = newLC_Value05;
    emit LC_Value05Changed();
}

QString NetProcess::LC_Value06() const
{
    return m_LC_Value06;
}

void NetProcess::setLC_Value06(const QString &newLC_Value06)
{
    if (m_LC_Value06 == newLC_Value06)
        return;
    m_LC_Value06 = newLC_Value06;
    emit LC_Value06Changed();
}

QString NetProcess::LC_Value07() const
{
    return m_LC_Value07;
}

void NetProcess::setLC_Value07(const QString &newLC_Value07)
{
    if (m_LC_Value07 == newLC_Value07)
        return;
    m_LC_Value07 = newLC_Value07;
    emit LC_Value07Changed();
}

QString NetProcess::LC_Value08() const
{
    return m_LC_Value08;
}

void NetProcess::setLC_Value08(const QString &newLC_Value08)
{
    if (m_LC_Value08 == newLC_Value08)
        return;
    m_LC_Value08 = newLC_Value08;
    emit LC_Value08Changed();
}

QString NetProcess::LC_Value09() const
{
    return m_LC_Value09;
}

void NetProcess::setLC_Value09(const QString &newLC_Value09)
{
    if (m_LC_Value09 == newLC_Value09)
        return;
    m_LC_Value09 = newLC_Value09;
    emit LC_Value09Changed();
}

QString NetProcess::LC_Value10() const
{
    return m_LC_Value10;
}

void NetProcess::setLC_Value10(const QString &newLC_Value10)
{
    if (m_LC_Value10 == newLC_Value10)
        return;
    m_LC_Value10 = newLC_Value10;
    emit LC_Value10Changed();
}

QString NetProcess::LC_Value11() const
{
    return m_LC_Value11;
}

void NetProcess::setLC_Value11(const QString &newLC_Value11)
{
    if (m_LC_Value11 == newLC_Value11)
        return;
    m_LC_Value11 = newLC_Value11;
    emit LC_Value11Changed();
}

QString NetProcess::LC_Value12() const
{
    return m_LC_Value12;
}

void NetProcess::setLC_Value12(const QString &newLC_Value12)
{
    if (m_LC_Value12 == newLC_Value12)
        return;
    m_LC_Value12 = newLC_Value12;
    emit LC_Value12Changed();
}

QString NetProcess::LC_Value13() const
{
    return m_LC_Value13;
}

void NetProcess::setLC_Value13(const QString &newLC_Value13)
{
    if (m_LC_Value13 == newLC_Value13)
        return;
    m_LC_Value13 = newLC_Value13;
    emit LC_Value13Changed();
}

QString NetProcess::LC_Value14() const
{
    return m_LC_Value14;
}

void NetProcess::setLC_Value14(const QString &newLC_Value14)
{
    if (m_LC_Value14 == newLC_Value14)
        return;
    m_LC_Value14 = newLC_Value14;
    emit LC_Value14Changed();
}

QString NetProcess::LC_Value15() const
{
    return m_LC_Value15;
}

void NetProcess::setLC_Value15(const QString &newLC_Value15)
{
    if (m_LC_Value15 == newLC_Value15)
        return;
    m_LC_Value15 = newLC_Value15;
    emit LC_Value15Changed();
}

QString NetProcess::LC_Value16() const
{
    return m_LC_Value16;
}

void NetProcess::setLC_Value16(const QString &newLC_Value16)
{
    if (m_LC_Value16 == newLC_Value16)
        return;
    m_LC_Value16 = newLC_Value16;
    emit LC_Value16Changed();
}

QString NetProcess::LC_Value17() const
{
    return m_LC_Value17;
}

void NetProcess::setLC_Value17(const QString &newLC_Value17)
{
    if (m_LC_Value17 == newLC_Value17)
        return;
    m_LC_Value17 = newLC_Value17;
    emit LC_Value17Changed();
}

QString NetProcess::LC_Value18() const
{
    return m_LC_Value18;
}

void NetProcess::setLC_Value18(const QString &newLC_Value18)
{
    if (m_LC_Value18 == newLC_Value18)
        return;
    m_LC_Value18 = newLC_Value18;
    emit LC_Value18Changed();
}

QString NetProcess::LC_Value19() const
{
    return m_LC_Value19;
}

void NetProcess::setLC_Value19(const QString &newLC_Value19)
{
    if (m_LC_Value19 == newLC_Value19)
        return;
    m_LC_Value19 = newLC_Value19;
    emit LC_Value19Changed();
}

QString NetProcess::LC_Value20() const
{
    return m_LC_Value20;
}

void NetProcess::setLC_Value20(const QString &newLC_Value20)
{
    if (m_LC_Value20 == newLC_Value20)
        return;
    m_LC_Value20 = newLC_Value20;
    emit LC_Value20Changed();
}

QString NetProcess::LeftAngle01() const
{
    return m_LeftAngle01;
}

void NetProcess::setLeftAngle01(const QString &newLeftAngle01)
{
    if (m_LeftAngle01 == newLeftAngle01)
        return;
    m_LeftAngle01 = newLeftAngle01;
    emit LeftAngle01Changed();
}

QString NetProcess::LeftAngle02() const
{
    return m_LeftAngle02;
}

void NetProcess::setLeftAngle02(const QString &newLeftAngle02)
{
    if (m_LeftAngle02 == newLeftAngle02)
        return;
    m_LeftAngle02 = newLeftAngle02;
    emit LeftAngle02Changed();
}

QString NetProcess::LeftAngle03() const
{
    return m_LeftAngle03;
}

void NetProcess::setLeftAngle03(const QString &newLeftAngle03)
{
    if (m_LeftAngle03 == newLeftAngle03)
        return;
    m_LeftAngle03 = newLeftAngle03;
    emit LeftAngle03Changed();
}

QString NetProcess::LeftAngle04() const
{
    return m_LeftAngle04;
}

void NetProcess::setLeftAngle04(const QString &newLeftAngle04)
{
    if (m_LeftAngle04 == newLeftAngle04)
        return;
    m_LeftAngle04 = newLeftAngle04;
    emit LeftAngle04Changed();
}

QString NetProcess::LeftAngle05() const
{
    return m_LeftAngle05;
}

void NetProcess::setLeftAngle05(const QString &newLeftAngle05)
{
    if (m_LeftAngle05 == newLeftAngle05)
        return;
    m_LeftAngle05 = newLeftAngle05;
    emit LeftAngle05Changed();
}

QString NetProcess::LeftAngle06() const
{
    return m_LeftAngle06;
}

void NetProcess::setLeftAngle06(const QString &newLeftAngle06)
{
    if (m_LeftAngle06 == newLeftAngle06)
        return;
    m_LeftAngle06 = newLeftAngle06;
    emit LeftAngle06Changed();
}

QString NetProcess::LeftAngle07() const
{
    return m_LeftAngle07;
}

void NetProcess::setLeftAngle07(const QString &newLeftAngle07)
{
    if (m_LeftAngle07 == newLeftAngle07)
        return;
    m_LeftAngle07 = newLeftAngle07;
    emit LeftAngle07Changed();
}

QString NetProcess::LeftAngle08() const
{
    return m_LeftAngle08;
}

void NetProcess::setLeftAngle08(const QString &newLeftAngle08)
{
    if (m_LeftAngle08 == newLeftAngle08)
        return;
    m_LeftAngle08 = newLeftAngle08;
    emit LeftAngle08Changed();
}

QString NetProcess::LeftAngle09() const
{
    return m_LeftAngle09;
}

void NetProcess::setLeftAngle09(const QString &newLeftAngle09)
{
    if (m_LeftAngle09 == newLeftAngle09)
        return;
    m_LeftAngle09 = newLeftAngle09;
    emit LeftAngle09Changed();
}

QString NetProcess::LeftAngle10() const
{
    return m_LeftAngle10;
}

void NetProcess::setLeftAngle10(const QString &newLeftAngle10)
{
    if (m_LeftAngle10 == newLeftAngle10)
        return;
    m_LeftAngle10 = newLeftAngle10;
    emit LeftAngle10Changed();
}

QString NetProcess::LeftAngle11() const
{
    return m_LeftAngle11;
}

void NetProcess::setLeftAngle11(const QString &newLeftAngle11)
{
    if (m_LeftAngle11 == newLeftAngle11)
        return;
    m_LeftAngle11 = newLeftAngle11;
    emit LeftAngle11Changed();
}

QString NetProcess::LeftAngle12() const
{
    return m_LeftAngle12;
}

void NetProcess::setLeftAngle12(const QString &newLeftAngle12)
{
    if (m_LeftAngle12 == newLeftAngle12)
        return;
    m_LeftAngle12 = newLeftAngle12;
    emit LeftAngle12Changed();
}

QString NetProcess::LeftAngle13() const
{
    return m_LeftAngle13;
}

void NetProcess::setLeftAngle13(const QString &newLeftAngle13)
{
    if (m_LeftAngle13 == newLeftAngle13)
        return;
    m_LeftAngle13 = newLeftAngle13;
    emit LeftAngle13Changed();
}

QString NetProcess::LeftAngle14() const
{
    return m_LeftAngle14;
}

void NetProcess::setLeftAngle14(const QString &newLeftAngle14)
{
    if (m_LeftAngle14 == newLeftAngle14)
        return;
    m_LeftAngle14 = newLeftAngle14;
    emit LeftAngle14Changed();
}

QString NetProcess::LeftAngle15() const
{
    return m_LeftAngle15;
}

void NetProcess::setLeftAngle15(const QString &newLeftAngle15)
{
    if (m_LeftAngle15 == newLeftAngle15)
        return;
    m_LeftAngle15 = newLeftAngle15;
    emit LeftAngle15Changed();
}

QString NetProcess::LeftAngle16() const
{
    return m_LeftAngle16;
}

void NetProcess::setLeftAngle16(const QString &newLeftAngle16)
{
    if (m_LeftAngle16 == newLeftAngle16)
        return;
    m_LeftAngle16 = newLeftAngle16;
    emit LeftAngle16Changed();
}

QString NetProcess::LeftAngle17() const
{
    return m_LeftAngle17;
}

void NetProcess::setLeftAngle17(const QString &newLeftAngle17)
{
    if (m_LeftAngle17 == newLeftAngle17)
        return;
    m_LeftAngle17 = newLeftAngle17;
    emit LeftAngle17Changed();
}

QString NetProcess::LeftAngle18() const
{
    return m_LeftAngle18;
}

void NetProcess::setLeftAngle18(const QString &newLeftAngle18)
{
    if (m_LeftAngle18 == newLeftAngle18)
        return;
    m_LeftAngle18 = newLeftAngle18;
    emit LeftAngle18Changed();
}

QString NetProcess::LeftAngle19() const
{
    return m_LeftAngle19;
}

void NetProcess::setLeftAngle19(const QString &newLeftAngle19)
{
    if (m_LeftAngle19 == newLeftAngle19)
        return;
    m_LeftAngle19 = newLeftAngle19;
    emit LeftAngle19Changed();
}

QString NetProcess::LeftAngle20() const
{
    return m_LeftAngle20;
}

void NetProcess::setLeftAngle20(const QString &newLeftAngle20)
{
    if (m_LeftAngle20 == newLeftAngle20)
        return;
    m_LeftAngle20 = newLeftAngle20;
    emit LeftAngle20Changed();
}

QString NetProcess::RightAngle01() const
{
    return m_RightAngle01;
}

void NetProcess::setRightAngle01(const QString &newRightAngle01)
{
    if (m_RightAngle01 == newRightAngle01)
        return;
    m_RightAngle01 = newRightAngle01;
    emit RightAngle01Changed();
}

QString NetProcess::RightAngle02() const
{
    return m_RightAngle02;
}

void NetProcess::setRightAngle02(const QString &newRightAngle02)
{
    if (m_RightAngle02 == newRightAngle02)
        return;
    m_RightAngle02 = newRightAngle02;
    emit RightAngle02Changed();
}

QString NetProcess::RightAngle03() const
{
    return m_RightAngle03;
}

void NetProcess::setRightAngle03(const QString &newRightAngle03)
{
    if (m_RightAngle03 == newRightAngle03)
        return;
    m_RightAngle03 = newRightAngle03;
    emit RightAngle03Changed();
}

QString NetProcess::RightAngle04() const
{
    return m_RightAngle04;
}

void NetProcess::setRightAngle04(const QString &newRightAngle04)
{
    if (m_RightAngle04 == newRightAngle04)
        return;
    m_RightAngle04 = newRightAngle04;
    emit RightAngle04Changed();
}

QString NetProcess::RightAngle05() const
{
    return m_RightAngle05;
}

void NetProcess::setRightAngle05(const QString &newRightAngle05)
{
    if (m_RightAngle05 == newRightAngle05)
        return;
    m_RightAngle05 = newRightAngle05;
    emit RightAngle05Changed();
}

QString NetProcess::RightAngle06() const
{
    return m_RightAngle06;
}

void NetProcess::setRightAngle06(const QString &newRightAngle06)
{
    if (m_RightAngle06 == newRightAngle06)
        return;
    m_RightAngle06 = newRightAngle06;
    emit RightAngle06Changed();
}

QString NetProcess::RightAngle07() const
{
    return m_RightAngle07;
}

void NetProcess::setRightAngle07(const QString &newRightAngle07)
{
    if (m_RightAngle07 == newRightAngle07)
        return;
    m_RightAngle07 = newRightAngle07;
    emit RightAngle07Changed();
}

QString NetProcess::RightAngle08() const
{
    return m_RightAngle08;
}

void NetProcess::setRightAngle08(const QString &newRightAngle08)
{
    if (m_RightAngle08 == newRightAngle08)
        return;
    m_RightAngle08 = newRightAngle08;
    emit RightAngle08Changed();
}

QString NetProcess::RightAngle09() const
{
    return m_RightAngle09;
}

void NetProcess::setRightAngle09(const QString &newRightAngle09)
{
    if (m_RightAngle09 == newRightAngle09)
        return;
    m_RightAngle09 = newRightAngle09;
    emit RightAngle09Changed();
}

QString NetProcess::RightAngle10() const
{
    return m_RightAngle10;
}

void NetProcess::setRightAngle10(const QString &newRightAngle10)
{
    if (m_RightAngle10 == newRightAngle10)
        return;
    m_RightAngle10 = newRightAngle10;
    emit RightAngle10Changed();
}

QString NetProcess::RightAngle11() const
{
    return m_RightAngle11;
}

void NetProcess::setRightAngle11(const QString &newRightAngle11)
{
    if (m_RightAngle11 == newRightAngle11)
        return;
    m_RightAngle11 = newRightAngle11;
    emit RightAngle11Changed();
}

QString NetProcess::RightAngle12() const
{
    return m_RightAngle12;
}

void NetProcess::setRightAngle12(const QString &newRightAngle12)
{
    if (m_RightAngle12 == newRightAngle12)
        return;
    m_RightAngle12 = newRightAngle12;
    emit RightAngle12Changed();
}

QString NetProcess::RightAngle13() const
{
    return m_RightAngle13;
}

void NetProcess::setRightAngle13(const QString &newRightAngle13)
{
    if (m_RightAngle13 == newRightAngle13)
        return;
    m_RightAngle13 = newRightAngle13;
    emit RightAngle13Changed();
}

QString NetProcess::RightAngle14() const
{
    return m_RightAngle14;
}

void NetProcess::setRightAngle14(const QString &newRightAngle14)
{
    if (m_RightAngle14 == newRightAngle14)
        return;
    m_RightAngle14 = newRightAngle14;
    emit RightAngle14Changed();
}

QString NetProcess::RightAngle15() const
{
    return m_RightAngle15;
}

void NetProcess::setRightAngle15(const QString &newRightAngle15)
{
    if (m_RightAngle15 == newRightAngle15)
        return;
    m_RightAngle15 = newRightAngle15;
    emit RightAngle15Changed();
}

QString NetProcess::RightAngle16() const
{
    return m_RightAngle16;
}

void NetProcess::setRightAngle16(const QString &newRightAngle16)
{
    if (m_RightAngle16 == newRightAngle16)
        return;
    m_RightAngle16 = newRightAngle16;
    emit RightAngle16Changed();
}

QString NetProcess::RightAngle17() const
{
    return m_RightAngle17;
}

void NetProcess::setRightAngle17(const QString &newRightAngle17)
{
    if (m_RightAngle17 == newRightAngle17)
        return;
    m_RightAngle17 = newRightAngle17;
    emit RightAngle17Changed();
}

QString NetProcess::RightAngle18() const
{
    return m_RightAngle18;
}

void NetProcess::setRightAngle18(const QString &newRightAngle18)
{
    if (m_RightAngle18 == newRightAngle18)
        return;
    m_RightAngle18 = newRightAngle18;
    emit RightAngle18Changed();
}

QString NetProcess::RightAngle19() const
{
    return m_RightAngle19;
}

void NetProcess::setRightAngle19(const QString &newRightAngle19)
{
    if (m_RightAngle19 == newRightAngle19)
        return;
    m_RightAngle19 = newRightAngle19;
    emit RightAngle19Changed();
}

QString NetProcess::RightAngle20() const
{
    return m_RightAngle20;
}

void NetProcess::setRightAngle20(const QString &newRightAngle20)
{
    if (m_RightAngle20 == newRightAngle20)
        return;
    m_RightAngle20 = newRightAngle20;
    emit RightAngle20Changed();
}

QString NetProcess::Count01() const
{
    return m_Count01;
}

void NetProcess::setCount01(const QString &newCount01)
{
    if (m_Count01 == newCount01)
        return;
    m_Count01 = newCount01;
    emit Count01Changed();
}

QString NetProcess::Count02() const
{
    return m_Count02;
}

void NetProcess::setCount02(const QString &newCount02)
{
    if (m_Count02 == newCount02)
        return;
    m_Count02 = newCount02;
    emit Count02Changed();
}

QString NetProcess::Count03() const
{
    return m_Count03;
}

void NetProcess::setCount03(const QString &newCount03)
{
    if (m_Count03 == newCount03)
        return;
    m_Count03 = newCount03;
    emit Count03Changed();
}

QString NetProcess::Count04() const
{
    return m_Count04;
}

void NetProcess::setCount04(const QString &newCount04)
{
    if (m_Count04 == newCount04)
        return;
    m_Count04 = newCount04;
    emit Count04Changed();
}

QString NetProcess::Count05() const
{
    return m_Count05;
}

void NetProcess::setCount05(const QString &newCount05)
{
    if (m_Count05 == newCount05)
        return;
    m_Count05 = newCount05;
    emit Count05Changed();
}

QString NetProcess::Count06() const
{
    return m_Count06;
}

void NetProcess::setCount06(const QString &newCount06)
{
    if (m_Count06 == newCount06)
        return;
    m_Count06 = newCount06;
    emit Count06Changed();
}

QString NetProcess::Count07() const
{
    return m_Count07;
}

void NetProcess::setCount07(const QString &newCount07)
{
    if (m_Count07 == newCount07)
        return;
    m_Count07 = newCount07;
    emit Count07Changed();
}

QString NetProcess::Count08() const
{
    return m_Count08;
}

void NetProcess::setCount08(const QString &newCount08)
{
    if (m_Count08 == newCount08)
        return;
    m_Count08 = newCount08;
    emit Count08Changed();
}

QString NetProcess::Count09() const
{
    return m_Count09;
}

void NetProcess::setCount09(const QString &newCount09)
{
    if (m_Count09 == newCount09)
        return;
    m_Count09 = newCount09;
    emit Count09Changed();
}

QString NetProcess::Count10() const
{
    return m_Count10;
}

void NetProcess::setCount10(const QString &newCount10)
{
    if (m_Count10 == newCount10)
        return;
    m_Count10 = newCount10;
    emit Count10Changed();
}

QString NetProcess::Count11() const
{
    return m_Count11;
}

void NetProcess::setCount11(const QString &newCount11)
{
    if (m_Count11 == newCount11)
        return;
    m_Count11 = newCount11;
    emit Count11Changed();
}

QString NetProcess::Count12() const
{
    return m_Count12;
}

void NetProcess::setCount12(const QString &newCount12)
{
    if (m_Count12 == newCount12)
        return;
    m_Count12 = newCount12;
    emit Count12Changed();
}

QString NetProcess::Count13() const
{
    return m_Count13;
}

void NetProcess::setCount13(const QString &newCount13)
{
    if (m_Count13 == newCount13)
        return;
    m_Count13 = newCount13;
    emit Count13Changed();
}

QString NetProcess::Count14() const
{
    return m_Count14;
}

void NetProcess::setCount14(const QString &newCount14)
{
    if (m_Count14 == newCount14)
        return;
    m_Count14 = newCount14;
    emit Count14Changed();
}

QString NetProcess::Count15() const
{
    return m_Count15;
}

void NetProcess::setCount15(const QString &newCount15)
{
    if (m_Count15 == newCount15)
        return;
    m_Count15 = newCount15;
    emit Count15Changed();
}

QString NetProcess::Count16() const
{
    return m_Count16;
}

void NetProcess::setCount16(const QString &newCount16)
{
    if (m_Count16 == newCount16)
        return;
    m_Count16 = newCount16;
    emit Count16Changed();
}

QString NetProcess::Count17() const
{
    return m_Count17;
}

void NetProcess::setCount17(const QString &newCount17)
{
    if (m_Count17 == newCount17)
        return;
    m_Count17 = newCount17;
    emit Count17Changed();
}

QString NetProcess::Count18() const
{
    return m_Count18;
}

void NetProcess::setCount18(const QString &newCount18)
{
    if (m_Count18 == newCount18)
        return;
    m_Count18 = newCount18;
    emit Count18Changed();
}

QString NetProcess::Count19() const
{
    return m_Count19;
}

void NetProcess::setCount19(const QString &newCount19)
{
    if (m_Count19 == newCount19)
        return;
    m_Count19 = newCount19;
    emit Count19Changed();
}

QString NetProcess::Count20() const
{
    return m_Count20;
}

void NetProcess::setCount20(const QString &newCount20)
{
    if (m_Count20 == newCount20)
        return;
    m_Count20 = newCount20;
    emit Count20Changed();
}

int NetProcess::processType() const
{
    return m_processType;
}

void NetProcess::setProcessType(int newProcessType)
{
    if (m_processType == newProcessType)
        return;
    m_processType = newProcessType;
    emit processTypeChanged();
}
